import*as e from"../../../../core/common/common.js";import*as t from"../../../../core/i18n/i18n.js";import*as o from"../../../../core/root/root.js";import*as i from"../../legacy.js";const n={flamechartMouseWheelAction:"Flamechart mouse wheel action:",scroll:"Scroll",zoom:"Zoom",liveMemoryAllocationAnnotations:"Live memory allocation annotations",showLiveMemoryAllocation:"Show live memory allocation annotations",hideLiveMemoryAllocation:"Hide live memory allocation annotations",collectGarbage:"Collect garbage"},a=t.i18n.registerUIStrings("ui/legacy/components/perf_ui/perf_ui-meta.ts",n),l=t.i18n.getLazilyComputedLocalizedString.bind(void 0,a);let r;i.ActionRegistration.registerActionExtension({actionId:"components.collect-garbage",category:i.ActionRegistration.ActionCategory.PERFORMANCE,title:l(n.collectGarbage),iconClass:"bin",loadActionDelegate:async()=>(await async function(){return r||(r=await import("./perf_ui.js")),r}()).GCActionDelegate.GCActionDelegate.instance()}),e.Settings.registerSettingExtension({category:e.Settings.SettingCategory.PERFORMANCE,storageType:e.Settings.SettingStorageType.Synced,title:l(n.flamechartMouseWheelAction),settingName:"flamechartMouseWheelAction",settingType:e.Settings.SettingType.ENUM,defaultValue:"zoom",options:[{title:l(n.scroll),text:l(n.scroll),value:"scroll"},{title:l(n.zoom),text:l(n.zoom),value:"zoom"}]}),e.Settings.registerSettingExtension({category:e.Settings.SettingCategory.MEMORY,experiment:o.Runtime.ExperimentName.LIVE_HEAP_PROFILE,title:l(n.liveMemoryAllocationAnnotations),settingName:"memoryLiveHeapProfile",settingType:e.Settings.SettingType.BOOLEAN,defaultValue:!1,options:[{value:!0,title:l(n.showLiveMemoryAllocation)},{value:!1,title:l(n.hideLiveMemoryAllocation)}]});
